package com.zyx;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ZyxAspect {
    @Before("execution(public void com.zyx.service.UserService.test())")
    public void zyxBefore(JoinPoint joinPoint){
        System.out.println("zyx before");
    }
}